﻿@model Event_Planner.Models.UsuariosModel

@{
    ViewBag.Title = "Editar";
}

<h2>Editar</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Información de cuenta</legend>

    
        <div class="display-label">Nombre</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.NombreUsuario)
        </div>

        @Html.HiddenFor(model => model.NombreUsuario)

        <div class="editor-label">
            @Html.LabelFor(model => model.EmailUsuario)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EmailUsuario)
            @Html.ValidationMessageFor(model => model.EmailUsuario)
        </div>

        <p>
            <input type="submit" value="Guardar" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Volver a la lista", "Index") |
    @Html.ActionLink("Cambiar Contraseña", "ChangePassword") 
</div>
